import { request } from '../utils'
import {APIServer} from '../utils/config'

export async function login (params) {

  console.log(APIServer);

  return request(APIServer + 'login', {
    method: 'post',
    data: params
  })
}

export async function logout (params) {
  return request('/api/logout', {
    method: 'post',
    data: params
  })
}

export async function userInfo (params) {
  return request('/api/userInfo', {
    method: 'get',
    data: params
  })
}
